<div id="kitchenarticle-index">

    <div class="nav">
        <a href="__APP__/KitchenArticle/index">全部</a>
        <volist name="kitchencategoryinfo" id="vo">
            <a href="__APP__/KitchenArticle/index/cid/<{$vo.id}>"><{$vo.name}></a>
        </volist>
    </div>

        <div class="search">
            <empty name="Think.get.cid">
                <form action="__APP__/KitchenArticle/index" method="post" class="search">
                    <else/>
                    <form action="__APP__/KitchenArticle/index/cid/<{$Think.get.cid}>" method="post" class="select">
            </empty>
                    关键字 <input type="text" name="key" /> 按
                    <select name="search">
                        <option value="1">ID</option>
                        <option value="2">菜谱名称</option>
                    </select>
                    <empty name="list">
                        <input type="submit" value="搜索" disabled="disabled" />
                        <else />
                        <input type="submit" value="搜索" />
                    </empty>
                </form>

        </div>

        <form action="__APP__/KitchenArticle/del" method="post" name="delete" class="delete">
            <table>
                <thead>
                <tr>
                    <th>ID</th>
                    <th>菜谱名称</th>
                    <th colspan="2">操作</th>
                    <th>是否发布</th>
                    <th>所属分类</th>
                    <th>创建人</th>
                    <th>创建时间</th>
                    <th>浏览次数</th>
                    <th>推荐</th>
                    <th class="action" style="width:50px;"><input class="allselect" type="button" value="全选" /></th>
                </tr>
                </thead>
                <tbody>
                <empty name="list">
                    <tr><td colspan="11" style="height:50px;">暂无数据</td></tr>
                    <else/>
                    <volist name="list" id="vo">
                        <tr>
                            <td><{$vo.id}></td>
                            <td><a href="__ROOT__/index.php/Kitchen/edit/sid/<{$vo.recipetypeid}>/cid/<{$vo.recipecategoryid}>/id/<{$vo.id}>" title="修改该菜谱信息"><{$vo.name}></a></td>
                            <td><a target="_blank" href="__ROOT__/index.php/Kitchen/content/cid/<{$vo.recipecategoryid}>/id/<{$vo.id}>" title="查看菜谱信息">查看</a></td>
                            <td><a target="_blank" href="__ROOT__/index.php/Kitchen/edit/sid/<{$vo.recipetypeid}>/cid/<{$vo.recipecategoryid}>/id/<{$vo.id}>" title="修改该菜谱信息">修改</a></td>
                            <eq name="vo.publish" value="1">
                                <td>已发布</td>
                                <else/>
                                <td>未发布</td>
                            </eq>
                            <td><a href="__APP__/KitchenArticle/index/cid/<{$vo.recipecategoryid}>"><{$vo.kitchencategory.name}></a></td>
                            <td><{$vo.userinfo.username}></td>
                            <td><{$vo.created|date="Y-m-d H:s:i",###}></td>
                            <td><{$vo.downloads}></td>
                            <eq name="vo.recommend" value="1">
                                <td><a href="__APP__/KitchenArticle/delrecommend/cid/<{$vo.recipecategoryid}>/id/<{$vo.id}>">Yes</a></td>
                                <else/>
                                <td><a href="__APP__/KitchenArticle/addrecommend/cid/<{$vo.recipecategoryid}>/id/<{$vo.id}>">No</a></td>
                            </eq>
                            <td><input type="checkbox" name="actions[]" value="<{$vo.id}>" /></td>
                        </tr>
                    </volist>
                </empty>
                </tbody>
                <tfoot>
                <empty name="show">
                    <tr><td class="fpage" colspan="11">暂无数据</td></tr>
                    <else/>
                    <tr><td class="fpage" colspan="10"><{$show}></td><td><input class="buttondel" type="button" value="删除" /></td></tr>
                </empty>
                </tfoot>
            </table>

        </form>
</div>
<script type="text/javascript" src="../Public/js/kitchenarticle.js"></script>